-- GENERATED SPELL FOR [Hakkari Sapper] --


function spell0_8336(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(11981,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8336', 3000, 1)
end

function spell1_8336(pUnit, Event) --@Wing Flap,Self--
pUnit:FullCastSpellOnTarget(11019,pUnit)
pUnit:RegisterEvent('Sorts_8336', 599, 1)
end

function Sorts_8336(pUnit, Event)
local choix_sorts_8336 = math.random(0, 1)
if choix_sorts_8336 == 0 then
pUnit:RegisterEvent('spell0_8336', 1, 1)
end
if choix_sorts_8336 == 1 then
pUnit:RegisterEvent('spell1_8336', 1, 1)
end
end

function mob8336_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8336', math.random(1500, 3000), 1)
end

function mob8336_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8336_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8336_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8336, 1, 'mob8336_Action')
RegisterUnitEvent(8336, 2, 'mob8336_Leave')
RegisterUnitEvent(8336, 3, 'mob8336_Kill')
RegisterUnitEvent(8336, 4, 'mob8336_Die')
